<html xmlns="http://www.w3c.org/ 9/xhtml"
 xmlns:f="http://java.sun.com/jsf/core"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:p="http://primefaces.prime.com.tr/ui">
 <body>
<h:form>  
                              
    <h:panelGrid columns="4" cellpadding="5">  
        <h:outputLabel for="name" value="Name:" style="font-weight:bold"/>  
          
        <p:inputText id="name" value="#{pprBean.firstname}" />  
         <p:button outcome="productDetail" value="Bookmark" image="bookmark">  
    <f:param name="productId" value="10" />  
</p:button> 
        <p:commandButton value="Submit" update="display"/>  
          
        <p:ajaxStatus style="width:16px;height:16px;">  
            <f:facet name="complete">  
                <h:outputText value="" />  
            </f:facet>  
        </p:ajaxStatus>  
    </h:panelGrid>  
      
    <h:outputText value="#{pprBean.firstname}" id="display" />  
      
</h:form> 
 </body>
 </html>